import com.genexus.*;
import com.genexus.ui.*;

public final class subwselcnv07 extends GXSubfileElement
{
   private byte VSel ;
   private long CnvCod ;
   private byte CnvTipGas ;
   private String CnvMarEqui ;
   private String CnvModEqui ;
   private String CnvSerEqui ;
   private String CnvMarCil ;
   private String CnvCodCil ;
   private String CnvCapCil ;
   private long CerCod ;
   private String CnvNroCer ;
   public byte getVSel( )
   {
      return VSel ;
   }

   public void setVSel( byte value )
   {
      VSel = value;
   }

   public long getCnvCod( )
   {
      return CnvCod ;
   }

   public void setCnvCod( long value )
   {
      CnvCod = value;
   }

   public byte getCnvTipGas( )
   {
      return CnvTipGas ;
   }

   public void setCnvTipGas( byte value )
   {
      CnvTipGas = value;
   }

   public String getCnvMarEqui( )
   {
      return CnvMarEqui ;
   }

   public void setCnvMarEqui( String value )
   {
      CnvMarEqui = value;
   }

   public String getCnvModEqui( )
   {
      return CnvModEqui ;
   }

   public void setCnvModEqui( String value )
   {
      CnvModEqui = value;
   }

   public String getCnvSerEqui( )
   {
      return CnvSerEqui ;
   }

   public void setCnvSerEqui( String value )
   {
      CnvSerEqui = value;
   }

   public String getCnvMarCil( )
   {
      return CnvMarCil ;
   }

   public void setCnvMarCil( String value )
   {
      CnvMarCil = value;
   }

   public String getCnvCodCil( )
   {
      return CnvCodCil ;
   }

   public void setCnvCodCil( String value )
   {
      CnvCodCil = value;
   }

   public String getCnvCapCil( )
   {
      return CnvCapCil ;
   }

   public void setCnvCapCil( String value )
   {
      CnvCapCil = value;
   }

   public long getCerCod( )
   {
      return CerCod ;
   }

   public void setCerCod( long value )
   {
      CerCod = value;
   }

   public String getCnvNroCer( )
   {
      return CnvNroCer ;
   }

   public void setCnvNroCer( String value )
   {
      CnvNroCer = value;
   }

   public void clear( )
   {
      VSel = 0 ;
      CnvCod = 0 ;
      CnvTipGas = 0 ;
      CnvMarEqui = "" ;
      CnvModEqui = "" ;
      CnvSerEqui = "" ;
      CnvMarCil = "" ;
      CnvCodCil = "" ;
      CnvCapCil = "" ;
      CerCod = 0 ;
      CnvNroCer = "" ;
   }

   public int compareTo( GXSubfileElement element ,
                         int column )
   {
      switch (column)
      {
            case 0 :
               if ( VSel > ((subwselcnv07) element).getVSel() ) return 1;
               if ( VSel < ((subwselcnv07) element).getVSel() ) return -1;
               return 0;
            case 1 :
               if ( CnvCod > ((subwselcnv07) element).getCnvCod() ) return 1;
               if ( CnvCod < ((subwselcnv07) element).getCnvCod() ) return -1;
               return 0;
            case 2 :
               if ( CnvTipGas > ((subwselcnv07) element).getCnvTipGas() ) return 1;
               if ( CnvTipGas < ((subwselcnv07) element).getCnvTipGas() ) return -1;
               return 0;
            case 3 :
               return GXutil.strcmp( GXutil.upper( CnvMarEqui ), GXutil.upper( ((subwselcnv07) element).getCnvMarEqui() ));
            case 4 :
               return GXutil.strcmp( GXutil.upper( CnvModEqui ), GXutil.upper( ((subwselcnv07) element).getCnvModEqui() ));
            case 5 :
               return GXutil.strcmp( GXutil.upper( CnvSerEqui ), GXutil.upper( ((subwselcnv07) element).getCnvSerEqui() ));
            case 6 :
               return GXutil.strcmp( GXutil.upper( CnvMarCil ), GXutil.upper( ((subwselcnv07) element).getCnvMarCil() ));
            case 7 :
               return GXutil.strcmp( GXutil.upper( CnvCodCil ), GXutil.upper( ((subwselcnv07) element).getCnvCodCil() ));
            case 8 :
               return GXutil.strcmp( GXutil.upper( CnvCapCil ), GXutil.upper( ((subwselcnv07) element).getCnvCapCil() ));
            case 9 :
               if ( CerCod > ((subwselcnv07) element).getCerCod() ) return 1;
               if ( CerCod < ((subwselcnv07) element).getCerCod() ) return -1;
               return 0;
            case 10 :
               return GXutil.strcmp( GXutil.upper( CnvNroCer ), GXutil.upper( ((subwselcnv07) element).getCnvNroCer() ));
      }
      return 0;
   }

   public boolean isEmpty( )
   {
      return ( ( VSel == 0 ) && ( CnvCod == 0 ) && ( CnvTipGas == 0 ) && ( GXutil.strcmp(CnvMarEqui, "") == 0 ) && ( GXutil.strcmp(CnvModEqui, "") == 0 ) && ( GXutil.strcmp(CnvSerEqui, "") == 0 ) && ( GXutil.strcmp(CnvMarCil, "") == 0 ) && ( GXutil.strcmp(CnvCodCil, "") == 0 ) && ( GXutil.strcmp(CnvCapCil, "") == 0 ) && ( CerCod == 0 ) && ( GXutil.strcmp(CnvNroCer, "") == 0 ) )  ;
   }

   public void setColumn( GXComponent cell ,
                          int field )
   {
      switch (field) {
         case 0 :
            cell.setValue( VSel );
            break;
         case 1 :
            cell.setValue( CnvCod );
            break;
         case 2 :
            cell.setValue( CnvTipGas );
            break;
         case 3 :
            cell.setValue( CnvMarEqui );
            break;
         case 4 :
            cell.setValue( CnvModEqui );
            break;
         case 5 :
            cell.setValue( CnvSerEqui );
            break;
         case 6 :
            cell.setValue( CnvMarCil );
            break;
         case 7 :
            cell.setValue( CnvCodCil );
            break;
         case 8 :
            cell.setValue( CnvCapCil );
            break;
         case 9 :
            cell.setValue( CerCod );
            break;
         case 10 :
            cell.setValue( CnvNroCer );
            break;
      }
   }

   public boolean isFieldChanged( GXComponent cell ,
                                  int field )
   {
      switch (field) {
         case 0 :
            return ( (((GUIObjectByte) cell).getValue() == VSel) );
         case 1 :
            return ( (((GUIObjectLong) cell).getValue() == CnvCod) );
         case 2 :
            return ( (((GUIObjectByte) cell).getValue() == CnvTipGas) );
         case 3 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CnvMarEqui) == 0) );
         case 4 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CnvModEqui) == 0) );
         case 5 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CnvSerEqui) == 0) );
         case 6 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CnvMarCil) == 0) );
         case 7 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CnvCodCil) == 0) );
         case 8 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CnvCapCil) == 0) );
         case 9 :
            return ( (((GUIObjectLong) cell).getValue() == CerCod) );
         case 10 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CnvNroCer) == 0) );
      }
      return false;
   }

   public void setField( int i ,
                         GXComponent value )
   {
      switch (i)
      {
            case 0 :
               VSel = value.getByteValue() ;
               break;
            case 1 :
               CnvCod = value.getLongValue() ;
               break;
            case 2 :
               CnvTipGas = value.getByteValue() ;
               break;
            case 3 :
               CnvMarEqui = value.getStringValue() ;
               break;
            case 4 :
               CnvModEqui = value.getStringValue() ;
               break;
            case 5 :
               CnvSerEqui = value.getStringValue() ;
               break;
            case 6 :
               CnvMarCil = value.getStringValue() ;
               break;
            case 7 :
               CnvCodCil = value.getStringValue() ;
               break;
            case 8 :
               CnvCapCil = value.getStringValue() ;
               break;
            case 9 :
               CerCod = value.getLongValue() ;
               break;
            case 10 :
               CnvNroCer = value.getStringValue() ;
               break;
      }
   }

   public void setField( int i ,
                         GXSubfileElement element )
   {
      switch (i)
      {
            case 0 :
               VSel = ((subwselcnv07) element).VSel;
               return;
            case 1 :
               CnvCod = ((subwselcnv07) element).CnvCod;
               return;
            case 2 :
               CnvTipGas = ((subwselcnv07) element).CnvTipGas;
               return;
            case 3 :
               CnvMarEqui = ((subwselcnv07) element).CnvMarEqui;
               return;
            case 4 :
               CnvModEqui = ((subwselcnv07) element).CnvModEqui;
               return;
            case 5 :
               CnvSerEqui = ((subwselcnv07) element).CnvSerEqui;
               return;
            case 6 :
               CnvMarCil = ((subwselcnv07) element).CnvMarCil;
               return;
            case 7 :
               CnvCodCil = ((subwselcnv07) element).CnvCodCil;
               return;
            case 8 :
               CnvCapCil = ((subwselcnv07) element).CnvCapCil;
               return;
            case 9 :
               CerCod = ((subwselcnv07) element).CerCod;
               return;
            case 10 :
               CnvNroCer = ((subwselcnv07) element).CnvNroCer;
               return;
      }
   }

}

